
import { projectList,getTag } from './urls';

const projectListAction = (data) => ({
  type: 'PROJECT_LIST',
  payload: data
});

const getTagAction = (data) => ({
  type: 'GET_TAG',
  payload: data
});

export const projectAction = (data) =>
  dispatch => projectList(data).then((response) => {
    dispatch(projectListAction(response))
  });

export const tagAction = (data) =>
  dispatch => getTag(data).then((response) => {
  dispatch(getTagAction(response))
});
